package com.yx.xinruitu.lbxupdate.entity;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;


@Component
public class WxServerInfo {
    /*测试*/
//    String APPID = "wxa51e42fc276713c2";
//    String APPSECRET = "5ffe27ecf5b9860ffc7f1ab135e35ea8";
    /*翼讯*/
//    String APPID = "wx66bfe3cea5b9ddaa";
//    String APPSECRET = "75896f9d55f321323d579e2fc21a5fb6";
    /*工会*/
//    String APPID = "wx823788cf15ba8bb4";
//    String APPSECRET = "7be76e81af70c905364fd1079a79f435";

    //https://open.weixin.qq.com/connect/oauth2/authorize?appid=wx823788cf15ba8bb4&redirect_uri=http://www.laichacha.net/goWxIndex&response_type=code&scope=snsapi_userinfo&#wechat_redirect

    public static String APPID;

    public static String  APPSECRET;

    public  String getAPPID() {
        return APPID;
    }
    @Value("${wx.appid}")
    public  void setAPPID(String APPID) {
        WxServerInfo.APPID = APPID;
    }

    public  String getAPPSECRET() {
        return APPSECRET;
    }
    @Value("${wx.appsecret}")
    public  void setAPPSECRET(String APPSECRET) {
        WxServerInfo.APPSECRET = APPSECRET;
    }
}
